package com.iam.util;

/**
 * create by yongli on 2021-05-10 17:39
 * 用泛型，适合数据库所有对象的增删改查
 * 参考mybatis plus的
 * public class Page<T> implements IPage<T> {
 * private static final long serialVersionUID = 8545996863226528798L;
 * private List<T> records;
 * private long total;
 * private long size;
 * // 就是这个当前页
 * private long current;
 * private List<OrderItem> orders;
 * private boolean optimizeCountSql;
 * private boolean isSearchCount;
 * }
 */

public class QueryPage<T> {
    private long current;
    private long size;
    private T query;

    public long getCurrent() {
        return current;
    }

    public void setCurrent(long current) {
        this.current = current;
    }

    public long getSize() {
        return size;
    }

    public void setSize(long size) {
        this.size = size;
    }

    public T getQuery() {
        return query;
    }

    public void setQuery(T query) {
        this.query = query;
    }
}
